import request from '@/utils/request'

// 查询患者计算结果列表
export function listScreening(query) {
  return request({
    url: '/his/screening/list',
    method: 'get',
    params: query
  })
}

// 查询患者计算结果详细
export function getScreening(id) {
  return request({
    url: '/his/screening/' + id,
    method: 'get'
  })
}

// 新增患者计算结果
export function addScreening(data) {
  return request({
    url: '/his/screening',
    method: 'post',
    data: data
  })
}

// 修改患者计算结果
export function updateScreening(data) {
  return request({
    url: '/his/screening',
    method: 'put',
    data: data
  })
}

// 删除患者计算结果
export function delScreening(id) {
  return request({
    url: '/his/screening/' + id,
    method: 'delete'
  })
}

export function changeLnpg(ids) {
  return request({
    url: '/his/screening/' + ids,
    method: 'post'
  })
}

export function delScreeningByPid(data) {
  return request({
    url: '/his/screening/deleteByPid',
    method: 'post',
    data: data
  })
}
